setup: 
replication folder contains:
- all scripts
- w4_final.csv, rologit1.dta-rologit4.dta, separatepartyfourgroup1.dta-separatepartyfourgroup4.dta
- This analysis is based on data from the Swiss Environmental Panel. The scientific use file can be found here: https://dx.doi.org/10.23662/FORS-DS-1220-1.
As we rely on respondents' location (geocoordinates), only the data cleaning script but not the underlying data are public.

how to:
- as a user, you need to create an empty folder named Figures in which all plots will be saved
- in some of the scripts, you need to adapt the working directory	
- the scripts run in the following order:

0. R script: 00_data_cleaning.R
	- script is public but not the data due to privacy concerns. 
	- cleans survey data, combines with all different (geospatial) data sources	
	- creates w4_final.csv

1. R script: 01_descriptive_plots.R
	- uses w4_final.csv which is created in 00_data_cleaning.R
	- creates Figures 1, A.1, A.2, A.3, A.4, A.5, A.6
	- creates Table A.2, A.8

2. STATA script: 02_operationalisation.do
	- uses w4_final.csv which is created in 00_data_cleaning.R
	- recodes to long dataset, creates match variables
	- saves dataset used for analysis (w4_final_reshaped.dta)

3. STATA script: 03_analyses.do 
	- uses w4_final_reshaped.dta created in 02_operationalisation.do
	- creates Tables A.3, A.4, A.5, A.6, A.7
	- creates rologit1.dta-rologit4.dta for Figures 3 and 4
	- creates separatepartyfourgroup1.dta-separatepartyfourgroup4.dta for Figures A.6 and A.7

4. R script: 04_simulation_plots.R
	- uses regression results from 03_analyses.do
	- creates Figures 3, 4
	- creates Figures A.6, A.7